#ifndef OPENGLTOFILE
#define  OPENGLTOFILE

#include <string>
#include <map>

//#include <GL/glu.h>
#include <maya/MGlobal.h>
#include <maya/MPxCommand.h>
using namespace std;

class openglToFile :public MPxCommand
{
public:
	MStatus doIt( const MArgList& args );
	static void *creator(){return new openglToFile;}
private:
	static DWORD WINAPI openglDraw( LPVOID lpParam);

	static std::map<string, string> meshTexture;
//	GLubyte pixelOpengl;
	static const int imageWidth=1280;
	static const int imageHeight=720;

};


#endif